package be.rugbyclubleuven.rachel.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "FAMI")
public class Adres {

	@Id
	@Column(name = "FamId")
	private Long id;

	@ManyToOne
	@JoinColumns({ @JoinColumn(name = "POSTK"), @JoinColumn(name = "POSTI") })
	private ZipCode zipCode;

	@Column(name = "NAAMF")
	private String familie;
	@Column(name = "STRAA")
	private String straat;
	@Column(name = "HUISN")
	private String huisNummer;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ZipCode getZipCode() {
		return zipCode;
	}

	public String getFamilie() {
		return familie;
	}

	public String getStraat() {
		return straat;
	}

	public String getHuisNummer() {
		return huisNummer;
	}

}